const _import = require("./_import_" + process.env.ROUT_MODE);

let marketingCenter = {
    path: "marketing-center",
    name: "营销中心",
    component: {
        render (c) {
            return c("router-view");
        }
    },
    children: [{
        path: "company-active",
        name: "优惠券及相关活动",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [
            {
                path: "coupon-list",
                name: "优惠券",
                component: _import("marketing-center/company-active/coupon-list"),
                children: [{
                    path: "create-experience",
                    name: "新增/编辑体验券",
                    component: _import("marketing-center/company-active/coupon-list/create-experience"),
                    meta: {
                        isSub: true
                    }
                },
                {
                    path: "preference-details",
                    name: "查看体验券",
                    component: _import("marketing-center/company-active/coupon-list/preference-details"),
                    meta: {
                        isSub: true
                    }
                },
                {
                    path: "fullreductiona-add",
                    name: "新增/编辑满减券",
                    component: _import("marketing-center/company-active/coupon-list/fullreductiona-add"),
                    meta: {
                        isSub: true
                    }
                },
                {
                    path: "fullreduction-details",
                    name: " 查看满减券",
                    component: _import("marketing-center/company-active/coupon-list/fullreduction-details"),
                    meta: {
                        isSub: true
                    }
                },
                {
                    path: "coupon-details",
                    name: "优惠券明细",
                    component: _import("marketing-center/company-active/coupon-list/coupon-details"),
                    meta: {
                        isSub: true
                    }
                }
                ]
            }, {
                path: "new-memberact",
                name: "拉新活动",
                component: _import("marketing-center/company-active/new-memberact")
            },
            {
                path: "hair-coupon",
                name: "直接发券",
                component: _import("marketing-center/company-active/hair-coupon"),
                children: [{
                    path: "hair-couponAdd",
                    name: "直接发券详情",
                    component: _import("marketing-center/company-active/hair-coupon/hair-couponAdd"),
                    meta: {
                        isSub: true
                    }
                },]
            },
            {
                path: "care-menberact",
                name: "会员关怀活动",
                component: _import("marketing-center/company-active/care-menberact")
            },
            {
                path: "activity-query",
                name: "活动查询",
                component: _import("marketing-center/company-active/activity-query")
            },

        ]
    },
    {
        path: "baby-gang",
        name: "婴联帮比赛",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [
            {
                path: "active-swim-enrol",
                name: "比赛报名列表",
                component: _import("marketing-center/baby-gang/active-swim-enrol")
            }, {
                path: "active-swim-achievement",
                name: "比赛成绩列表",
                component: _import("marketing-center/baby-gang/active-swim-achievement")
            }
        ]
    },
    {
        path: "pos-activity",
        name: "POS满折满减活动",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [
            {
                path: "new-whole",
                name: "满减满折",
                component: _import("marketing-center/pos-activity/new-whole"),
                children: [{
                    path: "whole-moneyOff",
                    name: "满减/满折",
                    component: _import("marketing-center/pos-activity/new-whole/whole-moneyOff"),
                    meta: {
                        isSub: true
                    }
                }
                ]
            }, {
                path: "item-delay",
                name: "单品变价",
                component: _import("marketing-center/pos-activity/item-delay")
            },
        ]
    },
    {
        path: "sms-template",
        name: "短信写入数据库",
        component: _import("marketing-center/sms-template")
    },
    {
        path: "h5-configuration",
        name: "H5配置",
        component: _import("marketing-center/h5-configuration"),
        children: [{
            path: "h5-newlyadded",
            name: "新增H5配置",
            component: _import("marketing-center/h5-configuration/h5-newlyadded"),
            meta: {
                isSub: true
            }
        },
        {
            path: "h5-edit",
            name: "编辑H5配置",
            component: _import("marketing-center/h5-configuration/h5-edit"),
            meta: {
                isSub: true
            }
        }
        ]
    },
    {
        path: "shop-active",
        name: "门店营销活动",
        component: {
            render (c) {
                return c("router-view");
            },
        },
        children: [{
            path: "store-active",
            name: "门店营销活动管理",
            component: _import("marketing-center/shop-active/store-active"),
        },
        {
            path: "store-active-add",
            name: "新增门店活动",
            component: _import("marketing-center/shop-active/store-active-add"),
            meta: {
                isSub: true
            }
        },
        ]
    }
    ]
}
export default marketingCenter
